﻿@model Web.Models.LocationListViewModel
           
@{
    ViewBag.Title = "Locations";
    Layout = "~/Views/Shared/WorkerLayout.cshtml";
}

<h2>Wideoteki</h2>


    @Html.ActionLink("Nowa lokalizacja", "LocationAdd")

    @if (Model != null)
    {
        foreach (RentalSystem.Data.EF.Agencies agency in Model.List)
        {
                 <div class="listItemBig">
                    @{Html.RenderPartial("_LocationDiv", agency);}
                </div>
        }
    }
    
    <div class="pagesNavigation">
        @Html.PageLinks(Model.PagingInfo, x => Url.Action("Locations", new { page = x }))
    </div>